package com.framework.spring.context.bfpp;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.core.PriorityOrdered;
import org.springframework.stereotype.Component;

@Component
@Slf4j(topic = "e")
public class H implements BeanFactoryPostProcessor, PriorityOrdered {

	public H() {
		log.info("H construct");
	}

	@Override
	public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
		log.info("scan H#BeanFactoryPostProcessor.postProcessBeanFactory,PriorityOrdered");
	}

	@Override
	public int getOrder() {
		log.info("H#PriorityOrdered.getOrder");
		return 1;
	}
}
